Utilising sdks
- JavaScript
- Ruby
- Go
// require the SDKconst SDK = require("pioneer-javascript-sdk");// if the actual address has a path, include that in the getServerAddress() methodconst scoutAddress = "http://localhost:3030";// the sdkKey that should match the sdkKey provided by Compassconst sdkKey = "JazzyElksRule";// makes an active sse connectionconst config = await new SDK(scoutAddress, sdkKey).connect().withWaitForData();const sdkClient = config.client;// gets the feature valueconsole.log(sdkClient.getFeature("LOGIN_MICROSERVICE"));
require 'pioneer_ruby_sdk'sdk_client = PioneerRubySdk.new('/path/to/scout', 'sdk_key')sdk_connection = sdk_client.connect().with_wait_for_data()
// Initialize an SDK clientscoutDaemon := "http://localhost:3030"sdkKey := "a-dummy-key"client := sdk.InitMember(scoutDaemon, sdkKey)
// connect SDK client to Scout to listen for SSE updatesclient.Connect()client.Listen()